package org.fastsyncer.parser;

import org.fastsyncer.connector.config.ConnectorConfig;

import java.util.List;

/**
 * @author AE86
 * @version 2.0.0
 * @date 2019/10/1 12:40
 */
public class Connector {

    /**
     * ID
     */
    private String id;

    /**
     * 名称
     */
    private String name;

    /**
     * 表名,["MY_USER", "T_MY_USER", "table_999"]
     */
    private List<String> table;

    /**
     * 连接器配置
     */
    private ConnectorConfig config;

    public String getId() {
        return id;
    }

    public Connector setId(String id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Connector setName(String name) {
        this.name = name;
        return this;
    }

    public List<String> getTable() {
        return table;
    }

    public Connector setTable(List<String> table) {
        this.table = table;
        return this;
    }

    public ConnectorConfig getConfig() {
        return config;
    }

    public Connector setConfig(ConnectorConfig config) {
        this.config = config;
        return this;
    }
}
